<?php 

$HOME_ITEM = "Главная";
$HOW_IT_WORKS_ITEM = "Как это работает";
$COURSES_ITEM = "Наши курсы";
$PRICE_LIST_ITEM = "Наши цены";
$FAQ_ITEM = "FAQ"; ?>

<?php

function showHeader ($hItem) {
	global $COMPANY_NAME;
	global $COMPANY_SUBNAME;

	global $HOME_ITEM;
	global $HOW_IT_WORKS_ITEM;
	global $COURSES_ITEM;
	global $PRICE_LIST_ITEM;
	global $FAQ_ITEM;
	
	$logo_factor = 0.8;
	echo '<div class="wrapper col1">
	  <div id="header">
		<div id="logo">
		  <img src="images/logo.png" width="' . ($logo_factor*354) . '" height="' . ($logo_factor*85) . '"/>
		</div>
		<div id="topnav">
		  <ul>';
	$mark = 'class="active"';
	echo   '<li '.($hItem==0?$mark:'').'><a href="index.php">'.$HOME_ITEM.'</a></li>
			<li '.($hItem==1?$mark:'').'><a href="how_it_works.php">'.$HOW_IT_WORKS_ITEM.'</a></li>
			<li '.($hItem==2?$mark:'').'><a href="courses.php">'.$COURSES_ITEM.'</a></li>
			<li '.($hItem==3?$mark:'').'><a href="price_list.php">'.$PRICE_LIST_ITEM.'</a></li>        
			<li class="last'.($hItem==4?', active':'').'"><a href="faq.php">'.$FAQ_ITEM.'</a></li>
		  </ul>
		</div>
		<br class="clear" />
	  </div>
	</div>
	';

}

?>

